import request from '@/utils/request'
import BaseUrl from '../BaseUrl'

const systemPath = BaseUrl.getDefaultBaseUrl()
const modulePath = systemPath + '/mrm-admin/meterial/stat'
/**
 * 数据看板
*/
export const apiViews = {
  // 数据统计
  info: function(query) {
    return request({
      url: modulePath + '/days',
      method: 'get',
      params: query
    })
  },
  // 分类排行榜
  categoryTop: function(query) {
    return request({
      url: modulePath + '/top_cate',
      method: 'get',
      params: query
    })
  },
  // 调用量排行榜
  hotTop: function(query) {
    return request({
      url: modulePath + '/top_meterial',
      method: 'get',
      params: query
    })
  }
}
